package com.dzf.service.impl;

import com.dzf.dao.UserDao;
import com.dzf.entity.User;
import com.dzf.service.UserSerive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserSerive {
    @Autowired
    UserDao userDao;

    @Override
    public boolean add(User user) {
        return userDao.amend(user);
    }

    @Override
    public User findById(String uid) {
        return userDao.findById(uid);
    }
}
